package com.qf.test.service;

import com.qf.test.dao.UserDAO;
import com.qf.test.entity.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserService {
    @Resource
    private UserDAO userDAO;

    public User login(String username, String pwd){
        return userDAO.login(username,pwd);
    }

    public List<User> findAll(){
        return userDAO.findAll();
    }
}
